package club.justwill.single.persistence.document;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * Created by luoyu on 2/20/16.
 */
@Document(collection = "sku_support")
public class SkuSupport extends MongoDocument{
    @Field("project_id")
    private Long projectId;

    @Field("sku_id")
    private Long skuId;

    @Field("people_num")
    private Integer peopleNum;

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public Integer getPeopleNum() {
        if (peopleNum == null){
            peopleNum = 0;
        }
        return peopleNum;
    }

    public void setPeopleNum(Integer peopleNum) {
        this.peopleNum = peopleNum;
    }
}
